package com.rybbaby.tss.core.code.generate.view.bean;

/**
 * @description 视图
 * 
 * @author 谢进伟
 * 
 * @createDate 2016年11月13日 上午2:31:32
 */
public class View {
	
	/** 视图唯一标识 **/
	private String key;
	/** 视图描述 **/
	private String describe;
	/** 视图相对路径 **/
	private String path;
	
	public View (){
		super();
	}
	
	/**
	 * @param key
	 *            视图唯一标识
	 * @param describe
	 *            视图描述
	 * @param path
	 *            视图相对路径
	 */
	public View (String key , String describe , String path ){
		super();
		this.key = key;
		this.describe = describe;
		this.path = path;
	}
	
	public String getKey() {
		return key;
	}
	
	public void setKey(String key) {
		this.key = key;
	}
	
	public String getDescribe() {
		return describe;
	}
	
	public void setDescribe(String describe) {
		this.describe = describe;
	}
	
	public String getPath() {
		return path;
	}
	
	public void setPath(String path) {
		this.path = path;
	}
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("<view>");
		sb.append("<describe>").append(this.getDescribe()).append("</describe>");
		sb.append("<key>").append(this.getKey()).append("</key>");
		sb.append("<path>").append(this.getPath()).append("</path>");
		sb.append("</view>");
		return sb.toString();
	}
}
